

{% macro input(name, value='', type='text', size=20) -%}
    <input 
        type="{{ type }}" 
        name="{{ name }}" 
        value="{{ value|e }}" 
        size="{{ size }}"
    />
{% endmacro %}

{% macro mete(key='') %}
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
    <meta name='viewport' content='width=device-width'>
    <link rel='shortcut icon' href='/favicon.ico' />
    <link href='{{ g.path.css}}/home.css' type='text/css' rel='stylesheet'/>
{% endmacro %}

{% macro menu(key='') %}
    <!--[if lt IE 9]>
    <p class='gwidth ie6'>浏览器版本太低，不支持HTML5，浏览效果可能不正常！</p>
    <![endif]-->
    <div class="nav">
    <i class="cCCC">●</i> <a href="/" class="qrcode_tip"><b
      class="fa fa-book"></b> 默认首页</a>
    <i class="cCCC">●</i> <a href="/tests/" class="qrcode_tip"><b
      class="fa fa-book"></b> Tests</a>
    <i class="cCCC">●</i> <a href="/front/" class="qrcode_tip"><b
      class="fa fa-laptop"></b> 前端展示</a>
    <i class="cCCC">●</i> <a href="/admin/" class="qrcode_tip" target="_blank"><b
      class="fa fa-cog"></b> 后端管理</a>
    </div>
{% endmacro %}

{% macro foot(d) %}
    <div class="foot">
    <p>
      <a href='http://txjia.com/peace/wenode.htm' target='_self'>(Node.js)微框架</a> #   
      <a href='http://txmao.txjia.com/' target='_self'>贴心猫</a> # 
      <a href="https://jq.qq.com/?_wv=1027&k=43NUHsK" title="贴心猫(imcat)技术交流" target="_blank">QQ群:607070548</a> # 
      <a href="mailto:xpigeon#163.com">E-mail</a> 
    </p>
    <p>微爬(Wepy) Copyright © MIT</p>
    {% set p="/coder?g="+g.mkvs.group+"&c="+g.run.Ctrl+"&a="+g.run.Act+"&tpl="+g.run.full+"" %}
    <p id="rinfo">{{ p|info|safe }}</p>
    </div>
{% endmacro %}
